<?php
/**
 * @copyright Arthur Beer
 * @package core
 *
 * @copyright TinyWEB CMS
 * @link http://tinywebcms.ru
 * @link http://cms.vingrad.ru
 * @version SVN: $Id$ 
 */
 
 /**
  * Registry
  */
class Registry extends Object 
{
	private static $registry	= array();
	
    /**
     * Конструктор класса
     * 
     */
    private function __construct()
    {
    }
    
    public static function get($key)
    {
    	if(!array_key_exists($key, self::$registry)) {
    	    return null;	
	    //throw new Exception("Registry: Record not found by key {$key}.");
    	}
    	
    	return self::$registry[$key];
    }
    
    public static function set($key, $value)
    {
    	self::$registry[$key] = $value;
    }
}

/**
 * Tab: 4 spaces
 * Encoding: utf-8
 */
?>